import { ResultMessage, RequestOptions } from "../types/commonType";
import { networkRequest } from '../utils/requset';

/**
 * user
 */
// userInfo

// updateUserInfo


/**
 * auth
 */

// login
const login = (params: RequestOptions) => {
    return networkRequest<ResultMessage>("/auth/login", params)
}
// logout

// register
const register = (params: RequestOptions) => {
    return networkRequest<ResultMessage>("/auth/register", params)
}


export {
    login,
    register
}